package com.example.ssm;

import com.example.ssm.dao.UserDao;
import com.example.ssm.service.UserService;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;
import java.io.InputStream;

@SpringBootApplication
@MapperScan("com.example.ssm.dao")
public class SsmApplication {

	public static void main ( String[] args ) { SpringApplication.run ( SsmApplication.class, args ); }
	
	@GetMapping("/hello")
	public String TestController(){
		return String.format ( "hello world" );
	}
	
}
